//
//  FuzzySearchView.h
//  QFBAPP
//
//  Created by 无常先生 on 2018/5/28.
//  Copyright © 2018年 YIXun. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface FuzzySearchView : UIView
@property (nonatomic, copy) NSString *oldSearchKey;
/** 是否显示取消按钮 默认显示 */
@property (nonatomic, assign) BOOL hiddenCancel;

@property (nonatomic, copy) void (^searchViewDidEditClick)();

- (instancetype)initWithFrame:(CGRect)frame placeholderText:(NSString *)placeholder inputTextDidChange:(void (^)(NSString *text))textChangeBlock cancelClick:(void(^)(void))cancelClick;

- (void)becomeFirstResponder;
- (void)resignFirstResponder;

- (void)returnKeyboardClick:(void(^)(NSString *searchtext))callBack;
@end
